<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    @ok="handleOk"
    @cancel="handleCancel"
    cancelText="关闭">
    <template slot="footer">
      <a-button @click="handleCancel">
        关闭
      </a-button>
    </template>
    <!-- 查询区域 -->
    <a-table bordered
             rowKey="id"
             :show="visible"
             :columns="columns"
             :dataSource="dataList">

    </a-table>
  </j-modal>
</template>

<script>
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import {getAction} from '@/api/manage'
export default {
  name: "ViewModel",
  mixins:[JeecgListMixin, mixinDevice],
  components: {

  },
  data () {
    return {
      title:'',
      width:870,
      visible:false,
      disableSubmit: false,
      dataList:[],
      // 表头
      columns: [
        {
          title: '选项',
          dataIndex: '',
          key:'rowIndex',
          width:90,
          align:"center",
          customRender:function (t,r,index) {
            return parseInt(index)+1;
          }
        },
        {
          title:'数据日期',
          align:"center",
          dataIndex: 'sjrq'
        },
        {
          title:'报表名称',
          align:"center",
          dataIndex: 'reportId_dictText'
        },
        {
          title:'英文名称',
          align:"center",
          dataIndex: 'reportId'
        },
        {
          title:'校验状态',
          align:"center",
          width:90,
          dataIndex: 'verifyStatus_dictText'
        },
        {
          title:'提交状态',
          align:"center",
          width:90,
          dataIndex: 'commitStatus_dictText'
        },
        {
            title:'责任人',
            align:"center",
            width:90,
            dataIndex: 'userName_dictText',
          },
      ]
    }
  },
  created() {
  },
  computed: {
  },
  methods: {
    show(record){
      this.visible=true;
      var model = Object.assign({}, record);
      var checkPagam={
        sjrq:model['sjrq'],
        bankNoCd:model['bankNoCd'],
        reporttypecode:model['reportId']
      }
      var that=this;
      var vurl="/reportstatus/llbbReportStatus/nlist";
      getAction(vurl,checkPagam).then((res)=>{
        if(res.success){
          // that.$message.success(res.message);
          that.dataList=res.result.records;
          console.log(that.dataList)
          console.log(res)
        }else{
          that.$message.warning(res.message);
        }
      });
    },
    handleOk(){

    },
    handleCancel(){
      this.visible=false;
    }
  }
}
</script>

<style scoped>

</style>